package GetMoneyUser;

import java.util.ArrayList;

public class TestRedListCode {
    public static void main(String[] args) {
        Manager manager = new Manager("群主",100);

        Member aa = new Member("成员A", 10);
        Member bb = new Member("成员B", 5);
        Member cc = new Member("成员C", 8);

        System.out.println("=======收到红包之前============");
        manager.show();
        aa.show();
        bb.show();
        cc.show();
        System.out.println("==========开始发红包啦========");
        ArrayList<Integer> listRed = manager.send(88, 3);
        aa.receive(listRed);
        bb.receive(listRed);
        cc.receive(listRed);
        System.out.println("===========收到红包之后==========");
        manager.show();
        aa.show();
        bb.show();
        cc.show();
    }
}